

//TODO a(46)
function a46(module, exports, a) {
    var i = a(47), s = a(3), r = a(2), n = function (e, t) {
        n.superClass.constructor.call(this, e, t), this.active = {isDrag: !1}
    };
    s.extend(n, i);
    var o = {
        init: function () {
            n.superClass.init.call(this)
        }, initPoster: function (e) {
            if (e) {
                var t;
                if ("object" == typeof e) {
                    var a = this.dom.parentEl.width(), i = this.dom.parentEl.height(), s = a / i, r = [];
                    for (var n in e) {
                        var o = n.split("*");
                        2 == o.length && r.push({pw: o[0], ph: o[1], prd: Math.abs(o[0] / o[1] - s), url: e[n]})
                    }
                    r.length && (r.sort(function (e, t) {
                        return e.prd - t.prd
                    }), r[0].prd <= .3 && a / r[0].pw <= 1.3 && (t = r[0].url)), t || (a && i || (a = 320, i = 180), t = e.defaultPic + a + "_" + i + ".jpg")
                } else t = e;
                var l = this.dom.parentEl.find(".hv_play_poster")[0];
                l.style.backgroundImage = "url(" + t + ")", l.style.display = "block"
            }
        }, initChildren: function () {
            var e;
            switch (this.tplType) {
                case"base":
                    e = ["/playingPannel", "/defiBtn", "/playBtn", "/nextVideoBtn", "/fullScreenBtn", "/progressBar", "/popTip", "/tip"], r.Android || r.isPC || e.push("/shotcutSeek"), this.playerData.config.hideBarrage || e.push("/barrageBtn");
                    break;
                case"minBase":
                    e = ["/playingPannel", "/playBtn", "/fullScreenBtn", "/progressBar", "/popTip"], this.playerData.config.hideBarrage || e.push("/barrageBtn");
                    break;
                case"simple":
                    e = ["/simplePlayingPannel", "/popTip"];
                    break;
                case"IPhone":
                    e = ["/iphonePlayingPannel", "/popTip"]
            }
            for (var t = 0, i = e.length; t < i; t++) {
                var s = a(48)("." + e[t]);
                this.manager.register(new s(this))
            }
        }
    };
    s.merge(n.prototype, o), module.exports = n
}
